#!/bin/sh
code=$1
status=$2

if [ $status -ne 0 ];then
  echo "Yerba failed with ${code} on <%= node['fqdn'] %>" >> /tmp/yerba
else
  echo "Yerba succeeded on <%= node['fqdn'] %>"
fi
